const nodata = require('../tw-lib-base/no-data/props')

module.exports = {
  data: {
    type: Array,
    default () {
      return [
        {
          name: '班级学习态度',
          isok: true,
          value: '0.3'
        },
        {
          name: '班级活跃度',
          value: '0.6'
        },
        {
          name: '学习任务完成率',
          value: '40%'
        },
        {
          name: '徽章获得次数/人',
          value: '3'
        }
      ]
    },
    name: '图表数据集',
    filedType: 'api'
  },

  bgColor: {
    type: String,
    default: '#fff',
    name: '背景颜色',
    filedType: 'color'
  },
  scoreFontSize: {
    type: String,
    default: '18px',
    name: '得分字体大小',
    filedType: 'string'
  },
  labelFontSize: {
    type: String,
    default: '14px',
    name: '标签字体大小',
    filedType: 'string'
  },
  scorecolor: {
    type: String,
    default: '#1276ff',
    name: '得分字体颜色',
    filedType: 'color'
  },
  labelcolor: {
    type: String,
    default: '#333',
    name: '标签字体颜色',
    filedType: 'color'
  },
  marginTop: {
    type: String,
    default: '10px',
    name: '标签文字与图片间距',
    filedType: 'string'
  },

  positionTop: {
    type: String,
    default: 0,
    name: '本班数据top定位',
    filedType: 'string'
  },

  positionRight: {
    type: String,
    default: 0,
    name: '本班数据right定位',
    filedType: 'string'
  },

  lineMargin: {
    type: String,
    default: 0,
    name: '行间距离',
    filedType: 'string'
  },

  imgMargin: {
    type: String,
    default: 0,
    name: '行间距离',
    filedType: 'string'
  },
  ...nodata
}
